import React, { Component } from "react";
import "./03-style.css";

class App extends Component {
  render() {
    return (
      <>
        <h2>class添加样式</h2>
        {/* class需要写成className */}
        <p className="font" id="font">
          hello react!!
        </p>

        {/* for属性需要改成htmlFor */}
        <label htmlFor="name">姓名：</label>
        <input type="text" id="name" />
      </>
    );
  }
}

export default App;
